<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="ex" uri="/ex"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<form id="role_form" method="post"
	action="${pageContext.request.contextPath}/ac/role/${nextaction}"
	onsubmit="">
	<input type="hidden" id="roleId" name="roleId" value="${role.roleId}" />
	<div id="roleset" class="easyui-panel" nofit=true
		style="padding: 2px; border: 1px solid #ddd;" title="${formtitle}角色"
		data-options="iconCls:'icon-bt',collapsible:true">
		<table>
			<tr>
				<td><font color="red">*</font>
				</td>
				<td>角色名：</td>
				<td><input class="easyui-validatebox"
					data-options="required:true" name="roleName"
					value="<c:out value="${role.roleName}"/>" style="width: 200px" maxlength="10" ${param.readonly}/>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>备注：</td>
				<td><textarea name="remark"
						style="height: 60px; width: 200px; font-size: 13px"
						${param.readonly}
						name="_remark"><c:out value="${role.remark}"/></textarea>
				</td>
			</tr>
		</table>

	</div>

	<div id="nrqx" class="easyui-panel" nofit=true
		data-options="title:'资源管理功能权限',iconCls:'icon-bt',collapsible:true,tools:'#tt'">
		<div id="loadpSetDiv" />
	</div>
</form>
<c:set var="showdiv" value="" />
<c:if test="${not empty param.readonly}">
	<c:set var="showdiv" value="none" />
</c:if>
<div id="btn_div"
	style="display: ${showdiv};text-align:center;margin-top:10px">
	<c:if test="${nextaction eq 'update'}">
			<ex:permissionShow actionCode="update_role">
			<a href="#" class="easyui-linkbutton" onclick="saveRole();">保存</a>
			<a href="#" class="easyui-linkbutton" onclick="clearForm()">清除</a>
		</ex:permissionShow>
	</c:if>
	<c:if test="${nextaction eq 'add'}">
			<ex:permissionShow actionCode="create_role">
			<a href="#" class="easyui-linkbutton" onclick="saveRole();">保存</a>
			<a href="#" class="easyui-linkbutton" onclick="clearForm()">清除</a>
		</ex:permissionShow>
	</c:if>
</div>



